#ifndef System_Init_h
#define System_Init_h




typedef enum
{
	SYS_CLK_FH			=	(unsigned char) 0x00,
	SYS_CLK_FH_DIV2		=	(unsigned char) 0x20,
	SYS_CLK_FH_DIV4		=	(unsigned char) 0x40,
	SYS_CLK_FH_DIV8		=	(unsigned char) 0x60,
	SYS_CLK_FH_DIV16	=	(unsigned char) 0x80,
	SYS_CLK_FH_DIV32	=	(unsigned char) 0xa0,
	SYS_CLK_FH_DIV64	=	(unsigned char) 0xc0,
	SYS_CLK_Fsub		=	(unsigned char) 0xe0,
}System_Clock_TypeDef;


typedef enum
{
	WDT_8ms		=	(unsigned char) 0x50,
	WDT_32ms	=	(unsigned char) 0x51,
	WDT_128ms	=	(unsigned char) 0x52,
	WDT_512ms	=	(unsigned char) 0x53,
	WDT_1s		=	(unsigned char) 0x54,
	WDT_2s		=	(unsigned char) 0x55,
	WDT_4s		=	(unsigned char) 0x56,
	WDT_8s		=	(unsigned char) 0x57,
}WDT_TypeDef;


void 	System_Init();
void	Clean_Ram(void);
void	SYS_Clk(unsigned char SYS_Clock);
void	SysWDT(unsigned char WDT_Time);
void	GPIO_Init(void);
void	CnX_Select(unsigned char  Cxs);
void 	PWM_Init(void);
void 	OVP_Init(void);
void 	PowerOFF();
void 	Fre_Dec_304();
void 	Fre_Add_304();
#endif